home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / io / CharToByteCp1251.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  594 b   |  20 lines

  1. package sun.io;
  2.  
  3. import sun.nio.cs.MS1251;
  4.  
  5. public class CharToByteCp1251 extends CharToByteSingleByte {
  6.    private static final MS1251 nioCoder = new MS1251();
  7.  
  8.    public String getCharacterEncoding() {
  9.       return "Cp1251";
  10.    }
  11.  
  12.    public CharToByteCp1251() {
  13.       super.mask1 = 65280;
  14.       super.mask2 = 255;
  15.       super.shift = 8;
  16.       super.index1 = nioCoder.getEncoderIndex1();
  17.       super.index2 = nioCoder.getEncoderIndex2();
  18.    }
  19. }
  20.